package cn.pangpython.springpro.restcontroller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fasterxml.jackson.annotation.JsonView;

import cn.pangpython.springpro.entity.User;

/**
 * @author pangPython
 *		User Rest Controller
 */
@RestController
public class UserController {

	@GetMapping("/user")
	@JsonView(User.WithoutPasswordView.class)
	public User getUser(){
		return new User("eric","7!jd#h23");
	}
	
}
